objects= main.o query.o query_schema.o result.o

CC=g++
CFLAGS=-g -Wall 

mysearch:$(objects)
	$(CC) $(CFLAGS) -o mysearch $(objects) -L/user/lib/mysql -lmysqlclient
query.o: query.h query.cpp
	$(CC) $(CFLAGS) -c query.cpp
query_schema.o: query_schema.h query_schema.cpp
	$(CC) $(CFLAGS) -c query_schema.cpp -I/usr/include/mysql		
result.o: result.h result.cpp
	$(CC) $(CFLAGS) -c result.cpp	
main.o: main.cpp  
	$(CC) $(CFLAGS) -c main.cpp


.PHONY:clean
clean:	
	-rm mysearch $(objects)

